<template>
	<view class='sharing-packets' :class='isAnimate==true?"":"right"'>
		<view class='sharing-con' >
			<image style="height: 88rpx;width: 88rpx;border-radius: 50%;" @click='goShare' src="https://xiangyou-1313406647.cos.ap-nanjing.myqcloud.com/AI_PICTURE/AI_1742355334.png"></image>
			<!-- <view @click='goShare'>图片列表</view> -->
			<view class='text font-color'>
				用户作品
			</view>
		</view>
	</view>
</template>

<script>	
	export default {	
		props: { 
			sharePacket: {
				type: Object,
				default: function() {
					return {
						isState: true,
						priceName: ''
					}
				}
			},
			showAnimate:{
				type: Boolean,
			},		
		},
		watch:{
			showAnimate(nVal,oVal){
				setTimeout(res=>{
					this.isAnimate = nVal
				},1000)
			}
		},
		data() {
			return {
				 
				scrollNum:0,
				isAnimate:true
			};
		},

		methods: {
			closeShare: function() {
				this.$emit('closeChange');
			},
			goShare: function() {
				 
				uni.reLaunch({
					url:"/pages/AI/aiPictureList"
				})
				// if(this.isAnimate){
				// 	this.$emit('listenerActionSheet');
				// }else{
				// 	this.isAnimate = true
				// 	this.$emit('boxStatus',true);
				// }
			}
		},
	}
</script>

<style scoped lang="scss">
	.sharing-packets {
		position: fixed;
		right: 30rpx;
		bottom: 200rpx;
		z-index: 5;
		transition: all 0.3s ease-in-out 0s;
		opacity: 1;
		transform: scale(1);
		&.right{
			right: -140rpx;
		}
	}

	.sharing-packets.on {
		transform: scale(0);
		opacity: 0;
	}

	.sharing-packets .iconfont {
		width: 44rpx;
		height: 44rpx;
		border-radius: 50%;
		text-align: center;
		line-height: 44rpx;
		background-color: #999;
		font-size: 20rpx;
		color: #fff;
		margin: 0 auto;
		box-sizing: border-box;
		padding-left: 1px;
	}

	.sharing-packets .line {
		width: 2rpx;
		height: 40rpx;
		background-color: #999;
		margin: 0 auto;
	}

	.sharing-packets .sharing-con {
		width: 128rpx;
		// height: 128rpx;
		display: flex;
		justify-content: center;
		position: relative;
	}

	.sharing-packets .sharing-con image {
		width: 100%;
		height: 100%;
	}

	.sharing-packets .sharing-con .text {
		position: absolute;
		top: 52px;
		font-size: 16px;
		width: 100%;
		text-align: center;
		color: #393939;
		font-weight: 700;
	}

	.sharing-packets .sharing-con .text .money {
		font-size: 32rpx;
		font-weight: bold;
		margin-top: 24rpx;
	}

	.sharing-packets .sharing-con .text .money .label {
		font-size: 16rpx;
	}

	.sharing-packets .sharing-con .text .tip {
		font-size: 18rpx;
		color: #AA6E56;
		margin-top: 5rpx;
	}

	.sharing-packets .sharing-con .text .shareBut {
		width: 60%;
		font-size: 20rpx;
		color: #F13926;
		margin-top: 18rpx;
		height: 30rpx;
		line-height: 30rpx;
		background: #FFE8BB;
		border-radius: 30rpx;
		margin: 26rpx auto 0;
	}
</style>
